package rensoft.portfolio.client.model.titles;

import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.TextResource;

import cs.java.lang.HasService;


import rensoft.gwt.client.lang.GwtBase;

public class Page extends GwtBase {

  private final String id;
  private final ImageResource image;
  private final TextResource text;
  private final ImageResource bigImage;
  private int height = TitleImpl.HEIGHT;

  public Page(HasService parent, String id, ImageResource image, ImageResource bigImage,
      TextResource text) {
    this.id = id;
    this.bigImage = bigImage;
    this.text = text;
    initialize(parent);
    this.image = image;
  }

  public Page(HasService parent, String id, ImageResource image, TextResource text) {
    this(parent, id, image, null, text);
  }

  public ImageResource getBigImage() {
    return bigImage;
  }

  public int getHeight() {
    return height;
  }

  public String getId() {
    return id;
  }

  public ImageResource getImage() {
    return image;
  }

  public String getText() {
    return text.getText();
  }

  public void setHeight(int height) {
    this.height = height;
  }

}
